def hhh(name,age,sex):
    print(name)
    print(age)
    print(sex)

l = ['xh','18','nan']
d = {'name':'xh','age':18,'sex':'nan'}
hhh(*l)#l为列表,输出为单个元素
hhh(**d)#d为字典,输出为单个元素